Add: comprehensive unit test suite for C++ runtime and Python utilities#427
Open
chenshengxin2026 wants to merge 1 commit intohw-native-sys:mainfrom
Open
Add: comprehensive unit test suite for C++ runtime and Python utilities#427chenshengxin2026 wants to merge 1 commit intohw-native-sys:mainfrom
chenshengxin2026 wants to merge 1 commit intohw-native-sys:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive suite of unit tests for the runtime system, covering core types, scheduling logic, memory management, and tensor operations. It includes a CMake configuration for building these tests with GoogleTest, along with platform stubs for x86 compatibility. Feedback was provided to improve the robustness of a CMake helper function by ensuring it verifies the existence of all source files, including extra sources, to prevent potential build failures.
13 tasks
9aa9681 to
5b0a79c
Compare
7efd01c to
eaf02a5
Compare
eaf02a5 to
64a6af6
Compare
This was referenced Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/ut/cpp/into domain-based subdirectories:hierarchical/,pto2_a2a3/,pto2_a5/,types/,hardware/,platform/test_helpers.hheader andstubs/directory for reusable test infrastructuretest_elf_parser.py,test_env_manager.py,test_kernel_compiler.py,test_runtime_compiler.py,test_toolchain_setup.pyconftest.pywith improved path setup for isolated UT executiondocs/testing.md,docs/ci.mdfor new UT layout; adddocs/ut-test-suite.mddescribing the full test inventoryruntime_compiler.pyfor testabilityC++ test directory layout
Known defect-exposing tests
Several tests intentionally verify known src defects (documented in the test suite doc). These are preserved as regression anchors per project policy — they will pass once the underlying issues are fixed:
check_overlap()dimension mismatch (HIGH)task_window_size >= 1validation (LOW)Test plan
no_hardwaretests runut-cppjob passes onubuntu-latest